<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/
$router->get('/',         'IndexController@index');
$router->get('/about',    'IndexController@about');
$router->get('/team',     'IndexController@team');
$router->get('/yoosure',  'IndexController@yoosure');
$router->post('/message', 'MessageController@index');
$router->get('/message/test', 'MessageController@test');


$router->get('/admin', 'AdminController@index');
$router->post('/admin/login', 'AdminController@login');

$router->get('/admin/message', [
    'middleware' => 'authToken',
    'uses' => 'AdminController@message'
]);